import request from './http'

export const typeListApi = async (params) => {
	return request('goods/typeList', params)
}

export const goodsListApi = async (params) => {
	return request('goods/list', params)
}

export const goodsPageListApi = async (params) => {
	return request('goods/pageList', params)
}

export const goodsDetailByIdApi = async (params) => {
	return request('goods/detailById', params)
}

export const goodsSizeListApi = async (params) => {
	return request('goods/sizeList', params)
}

export const goodsSizeCommendListApi = async (params) => {
	return request('admin/goodsSize/commentList', params)
}

export const add2CartApi = async (params) => {
	return request('admin/goodsSize/add2Cart', params)
}

export const cartGoodsSizeListApi = async (params) => {
	return request('admin/goodsSize/cartGoodsSizeList', params)
}

export const updateCartApi = async (params) => {
	return request('admin/goodsSize/updateCart', params)
}